// let bcrypt = require('bcryptjs')
// // 封装修改加盐数
// module.exports = {
//     hashSync: password => bcrypt.hashSync(password,10),
//     compareSync:(sendPassWord,hash) => bcrypt.compareSync(sendPassWord,hash)
// }

let bcrypt = require('bcryptjs');

module.exports = {
    hashSync: password => bcrypt.hashSync(password, 10), 
    compareSync: (sendPassWord,hash) => bcrypt.compareSync(sendPassWord, hash)
}

